

import request from '@/utils/request.js'

// 添加项目点风险源
export function addProjectPointRisk(data) {
    return request({
        url:"/business/projectPointRisk",
        method:"post",
        data:data
    })
}
// 修改项目点风险源
export function updateProjectPointRisk(data){
    return request({
        url:"/business/projectPointRisk",
        method:"put",
        data:data
    })
}

// 删除项目点风险源
export function delProjectPointRisk(data) {
    return request({
        url:"/business/projectPointRisk",
        method:"delete",
        data:data
    })
}

// 获取项目点风险源详细
export function getProjectPointRisk(id){
    return request({
        url:"/business/projectPointRisk/" + id,
        method:"get"
    })
}

// 获取项目点风险源列表
export function listProjectPointRisk(query){
    return request({
        url:"business/projectPointRisk/list",
        method:"get",
        params:query
    })
}
